package com.example.my.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.my.entity.Role;

import java.security.Permission;
import java.util.List;


public interface RoleService extends IService<Role> {


    void assignPermissions(Long roleId, List<Long> permissionIds);


    List<Role> getRolesByUserId(Long userId);

    Role getPermissionsByRoleId(Long roleId);
}